package com.hanamaki.iotest;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class LoadPropertiesTest {

    public static void main(String[] args) {



        Properties properties = new Properties();
        FileInputStream fileInputStream = null;
        File file = null;
        try {
            new File("\"E:\\\\infoTest.txt\"");
            fileInputStream = new FileInputStream(file);
            properties.load(fileInputStream);
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                if (fileInputStream != null) {
                    fileInputStream.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        System.out.println(properties);

        System.out.println(properties.getProperty("pwd"));


    }
}
